<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">
<body>
	<ui:composition>

		<div class="navbar navbar-fixed-top navbar-inverse" role="navigation">
			<div class="container">
				<h:form id="inboxMenuForm"
					rendered="#{not empty request.remoteUser}" styleClass="tableNoGrid">

					<div class="navbar-header">
						<button type="button" class="navbar-toggle" data-toggle="collapse"
							data-target=".navbar-collapse">
							<span class="icon-bar"></span> <span class="icon-bar"></span> <span
								class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="#">MAPSA</a>
					</div>
					<div class="collapse navbar-collapse pull-right">
						<ul class="nav navbar-nav">
							<li class="dropdown"><a href="#" class="dropdown-toggle"
								data-toggle="dropdown"> <h:outputText
										value="#{userMB.firstName}">
									</h:outputText> <h:outputText rendered="#{not empty homeMenuMB.tasks}"
										value=" ( #{homeMenuMB.taskCount} ) ">
									</h:outputText>&nbsp;<b class="caret"></b>
							</a>
								<ul class="dropdown-menu">
									<li><h:outputLink value="notificaciones.xhtml"
											rendered="#{not empty homeMenuMB.tasks}">Notificaciones</h:outputLink></li>
									<li class="nav-header"><h:outputLink 
											rendered="#{empty homeMenuMB.tasks}">Sin tareas</h:outputLink></li>
									<li><h:commandLink action="#{userMB.logout}" value="Salir"></h:commandLink></li>
								</ul></li>
						</ul>
					</div>
				</h:form>
				<!--/.nav-collapse -->
			</div>
		</div>
	</ui:composition>
</body>
</html>